package com.yyyyy;

public class pp {
    private int age;

    public void setAge(int age) {
        if (age < 0 || age > 115) {
            System.out.println("不合法");

        } else {
            this.age = age;
            System.out.println("合法");
        }
    }
}

